package OrderService

import (
	"context"
	"gdshop-back-end-go/client-api/app/request/OrderReq"
	commonOrderReq "gdshop-back-end-go/common/request/OrderReq"
	"gdshop-back-end-go/common/response"
	"gdshop-back-end-go/service-order/OrderService"
)

// 用户支付订单
func SubmitPay(ctx context.Context, parames *OrderReq.SubmitPay) *response.JsonResponse {
	return OrderService.MemberPay(ctx, &commonOrderReq.MemberPay{
		OrderId:  parames.OrderId,
		MemberId: parames.MemberId,
		Payment:  parames.Payment,
	})
}
